//     ____    _                        __     _      _____
//    / ___\  /_\     /\/\    /\ /\    /__\   /_\     \_   \
//    \ \    //_\\   /    \  / / \ \  / \//  //_\\     / /\/
//  /\_\ \  /  _  \ / /\/\ \ \ \_/ / / _  \ /  _  \ /\/ /_
//  \____/  \_/ \_/ \/    \/  \___/  \/ \_/ \_/ \_/ \____/
//
//	         Copyright The Only Love 董小菡 by 周凯东

#import "UILabel+Init.h"

@implementation UILabel (Init)


+(instancetype)labelWithFrame:(CGRect)frame text:(NSString *)test backGroundcolor:(UIColor *)bgcolor textColor:(UIColor *)textcolor textalignment:(NSTextAlignment)alignment
{
    UILabel *l = [[[UILabel alloc]initWithFrame:frame]autorelease];
    
    if (bgcolor) {
        l.backgroundColor = bgcolor;
        
    }
    if (textcolor) {
        l.textColor = textcolor;
    }
    
    l.textAlignment = alignment;
    return l;
}

@end
